package com.fs.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fs.entity.Materialcategory;
import com.fs.entity.Materials;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fs.entity.MaterialsCondition;
import com.fs.entity.MaterialsPepShowInt;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2024-06-12
 */
public interface IMaterialsService {

    //提交材料
    String handle(Materials material);
    //获取材料详情
    Materials getMaterialDetail(int mid);
    //撤回材料
    boolean withdrawMaterial(int mid);
    //修改材料
    boolean updateMaterial(Materials materials);
    //保存草稿
    boolean save(Materials materials);
    //申请人工审核
    boolean manual(int mid);
    Page queryByPageAndCondition(MaterialsCondition materialsCondition);
    Page<MaterialsPepShowInt> selectPepMaterialsPageWithConditions(MaterialsCondition materialsCondition);
    //修改,审核
    boolean updateMaterialresult(Materials materials,Integer rid,String detail,Integer statu);
}
